let btn = document.getElementById("search");
btn.onclick=()=>{
    let username = document.getElementsByName("username")[0].value;
    let score = document.getElementsByName("score")[0].value;
    let likes = document.getElementsByName("likes")[0].value;
    let title = document.getElementsByName("title")[0].value;
    window.location.href='/servlet/video/index?username='+username+'&score='+score+'&likes='+likes+'&title='+title;
}
let usernameH = document.getElementsByName("usernameHid")[0].value;
let titleH = document.getElementsByName("titleHid")[0].value;
let scoreH = document.getElementsByName("scoreHid")[0].value;
let likesH = document.getElementsByName("likesHid")[0].value;
let rise = document.getElementById("rise");
rise.onclick=()=>{
     window.location.href='/servlet/video/index?username='+usernameH+'&score='+scoreH+'&likes='+likesH+'&title='+titleH+'&sort=rise';
}
let desc = document.getElementById("desc");
desc.onclick=()=>{
     window.location.href='/servlet/video/index?username='+usernameH+'&score='+scoreH+'&likes='+likesH+'&title='+titleH+'&sort=desc';
}
//删除
// let del_btn = document.getElementById("del_btn");
// del_btn.onclick=()=>{
//
//     window.location.href='/servlet/video/index?username='+usernameH+'&score='+scoreH+'&likes='+likesH+'&title='+titleH+'&deiId='
// }